package com.hig.risk.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 风险、危险源识别评分及控制对象 risk_score_control
 * 
 * @author scp
 * @date 2024-09-25
 */
public class RiskScoreControl extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 危险源 */
    @Excel(name = "危险源")
    private String sourceName;
    private Long sourceId;

    /** 修订时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修订时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date revisionTime;

    /** 作业项目 */
    @Excel(name = "作业项目")
    private String operatingItem;

    /** 风险因素 */
    @Excel(name = "风险因素")
    private String riskFactor;

    /** 输入类型种类 */
    @Excel(name = "输入类型种类")
    private String inputType;

    /** 可能造成的危害种类 */
    @Excel(name = "可能造成的危害种类")
    private String hazardsType;

    /** 防护（控制）措施 */
    @Excel(name = "防护（控制）措施")
    private String protectiveMeasures;

    /** L */
    @Excel(name = "事故发生的可能性(L)")
    private String l;

    /** E */
    @Excel(name = "人员暴露于危险环境中的频繁程度(E)")
    private String e;

    /** C */
    @Excel(name = "一旦发生事故可能造成的后果(C)")
    private String c;

    /** D */
    @Excel(name = "危险性(D)")
    private String d;

    /** 等级 */
    @Excel(name = "等级")
    private String grade;

    /** 位置 */
    @Excel(name = "位置")
    private String position;

    /** 责任主体 */
    @Excel(name = "责任主体")
    private String responsibleParty;

    /** 避免失控措施或失控后缓解（控制）措施 */
    @Excel(name = "避免失控措施或失控后缓解")
    private String measures;

    /** 备用 */
//    @Excel(name = "备用")
    private String remarkSpare;

    /** 备用1 */
//    @Excel(name = "备用1")
    private String remarkSpare1;

    /** 备用2 */
//    @Excel(name = "备用2")
    private String remarkSpare2;

    /** 部门ID */
    private Long deptId;

    /** 可能造成的危害种类组 */
    private String[] hazardsTypes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSourceId(Long sourceId) 
    {
        this.sourceId = sourceId;
    }

    public Long getSourceId() 
    {
        return sourceId;
    }
    public void setRevisionTime(Date revisionTime) 
    {
        this.revisionTime = revisionTime;
    }

    public Date getRevisionTime() 
    {
        return revisionTime;
    }
    public void setOperatingItem(String operatingItem) 
    {
        this.operatingItem = operatingItem;
    }

    public String getOperatingItem() 
    {
        return operatingItem;
    }
    public void setRiskFactor(String riskFactor) 
    {
        this.riskFactor = riskFactor;
    }

    public String getRiskFactor() 
    {
        return riskFactor;
    }
    public void setInputType(String inputType) 
    {
        this.inputType = inputType;
    }

    public String getInputType() 
    {
        return inputType;
    }
    public void setHazardsType(String hazardsType) 
    {
        this.hazardsType = hazardsType;
    }

    public String getHazardsType() 
    {
        return hazardsType;
    }
    public void setProtectiveMeasures(String protectiveMeasures) 
    {
        this.protectiveMeasures = protectiveMeasures;
    }

    public String getProtectiveMeasures() 
    {
        return protectiveMeasures;
    }
    public void setL(String l) 
    {
        this.l = l;
    }

    public String getL() 
    {
        return l;
    }
    public void setE(String e) 
    {
        this.e = e;
    }

    public String getE() 
    {
        return e;
    }
    public void setC(String c) 
    {
        this.c = c;
    }

    public String getC() 
    {
        return c;
    }
    public void setD(String d) 
    {
        this.d = d;
    }

    public String getD() 
    {
        return d;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }
    public void setPosition(String position) 
    {
        this.position = position;
    }

    public String getPosition() 
    {
        return position;
    }
    public void setResponsibleParty(String responsibleParty) 
    {
        this.responsibleParty = responsibleParty;
    }

    public String getResponsibleParty() 
    {
        return responsibleParty;
    }
    public void setMeasures(String measures) 
    {
        this.measures = measures;
    }

    public String getMeasures() 
    {
        return measures;
    }
    public void setRemarkSpare(String remarkSpare) 
    {
        this.remarkSpare = remarkSpare;
    }

    public String getRemarkSpare() 
    {
        return remarkSpare;
    }
    public void setRemarkSpare1(String remarkSpare1) 
    {
        this.remarkSpare1 = remarkSpare1;
    }

    public String getRemarkSpare1() 
    {
        return remarkSpare1;
    }
    public void setRemarkSpare2(String remarkSpare2) 
    {
        this.remarkSpare2 = remarkSpare2;
    }

    public String getRemarkSpare2() 
    {
        return remarkSpare2;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public String[] getHazardsTypes() {
        return hazardsTypes;
    }

    public void setHazardsTypes(String[] hazardsTypes) {
        this.hazardsTypes = hazardsTypes;
    }

    public String getSourceName() {
        return sourceName;
    }

    public void setSourceName(String sourceName) {
        this.sourceName = sourceName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sourceId", getSourceId())
            .append("revisionTime", getRevisionTime())
            .append("operatingItem", getOperatingItem())
            .append("riskFactor", getRiskFactor())
            .append("inputType", getInputType())
            .append("hazardsType", getHazardsType())
            .append("protectiveMeasures", getProtectiveMeasures())
            .append("l", getL())
            .append("e", getE())
            .append("c", getC())
            .append("d", getD())
            .append("grade", getGrade())
            .append("position", getPosition())
            .append("responsibleParty", getResponsibleParty())
            .append("measures", getMeasures())
            .append("remark", getRemark())
            .append("remarkSpare", getRemarkSpare())
            .append("remarkSpare1", getRemarkSpare1())
            .append("remarkSpare2", getRemarkSpare2())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("deptId", getDeptId())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("hazardsTypes", getHazardsTypes())
            .append("sourceName", getSourceName())
            .toString();
    }
}
